﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;

namespace BravaViewer
{
    public class BravaCadView
    {
        private string fileName;

        public string FileName
        {
            get { return fileName; }
            set { fileName = value; }
        }

        public BravaCadView(string fileName)
        {
            this.fileName = fileName;
        }

        public void View()
        {
            string path = Path.Combine(Application.StartupPath, "BravaViewer");
            Process p = Process.Start(Path.Combine(path, "BravaFreeDWG.exe"), fileName);
        }
    }
}
